package com.iweb.newa202104.enums;

import lombok.Data;

/**
 * @Author: LGZ
 * @Date: 2021/5/10 20:33
 * @Description:
 */
public enum Err {

    /**
     * TODO
     *
     *
     */
    SUCCESS(200, "成功"), NO_LOGIN(400, "无此权限"), PRAM_ERR(400, "参数异常"), UNKNOWN_ERR(500, "未知错误，请联系管理员");

    private int code;
    private String msg;

    Err(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
